package com.jsy.mini12306.user.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.jsy.mini12306.common.entity.Passenger;
import com.jsy.mini12306.user.service.PassengerService;
import com.jsy.mini12306.UserService;

import javax.annotation.Resource;

/**
 * @author: SongyangJi
 * @description:
 * @since: 2021/9/9
 */

@Service
public class UserServiceImpl implements UserService {

    @Resource
    PassengerService passengerService;

    @Override
    public Passenger getEmailByPassengerId(Long passengerId) {
        System.out.println("user rpc: "+passengerId);
        return passengerService.getById(passengerId);
    }
}
